package com.seeyoui.kensite.framework.cms.article.domain;

import java.util.Date;
import java.util.List;

import com.seeyoui.kensite.common.base.domain.DataEntity;
import com.seeyoui.kensite.common.util.DateUtils;
import com.seeyoui.kensite.framework.cms.category.domain.Category;

public class ArticleVO extends DataEntity<ArticleVO> {
	
	// 文章id
	private String id;
	// 创建时间
	private String publishDate;
	// 接口传递发布时间
	
	// 文章标题
	private String title;
	// 模块id
	private String portletId;
	// 描述
	private String description;
	// 缩略图/附件
	private String poster;
	/**
	 * 点赞数量
	 */
	private String praise;
	/**
	 * 发布组织
	 */
	private String organ;
	/**
	 * 文章内容
	 */
	private String content;
	/**
	 * 图片列表（三会一课）
	 */
	private List<String> posterList;
	/** 学习该文章奖励的积分 */
	private String point;
	
	public List<String> getPosterList() {
		return posterList;
	}
	public void setPosterList(List<String> posterList) {
		this.posterList = posterList;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getOrgan() {
		return organ;
	}
	public void setOrgan(String organ) {
		this.organ = organ;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getPoster() {
		return poster;
	}
	public void setPoster(String poster) {
		this.poster = poster;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(Date publishDate) {
		this.publishDate = DateUtils.formatDate(publishDate, "yyyy-MM-dd");
	}
	public String getPraise() {
		return praise;
	}
	public void setPraise(String praise) {
		this.praise = praise;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getPortletId() {
		return portletId;
	}
	public void setPortletId(String portletId) {
		this.portletId = portletId;
	}
	public String getPoint() {
		return point;
	}
	public void setPoint(String point) {
		this.point = point;
	}
	@Override
	public String toString() {
		return "ArticleVO [id=" + id + ", publishDate=" + publishDate
				+ ", title=" + title + ", portletId=" + portletId
				+ ", description=" + description + ", poster=" + poster
				+ ", praise=" + praise + ", organ=" + organ + ", content="
				+ content + ", posterList=" + posterList + ", point=" + point
				+ "]";
	}
	
}
